package com.xing.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xing.dao.EmployeeDao;
import com.xing.model.EmployeeInfo;

@Service
public class EmployeeService {

	@Resource
	private EmployeeDao dao;
	
	public void setDao(EmployeeDao dao) {
		this.dao = dao;
	}

//	public SubsidiaryInfo getSubsidiary(int id) {
//		
//		return dao.getSubsidiaryInfo(id);
//	}
//
//	public void addSubsidiary(SubsidiaryInfo info) {
//		
//		dao.addSubsidiary(info);
//	}
//	
//	public void updateSubsidiary(SubsidiaryInfo info) {
//		
//		dao.updateSubsidiary(info);
//	}
//	
//	public void deleteSubsidiary(String idStr) {
//		
//		String[] arr = idStr.split(",");
//		List<Integer> idList = new ArrayList<Integer>();
//		for (String tmp : arr) {
//			idList.add(Integer.parseInt(tmp));
//		}
//		
//		dao.deleteSubsidiary(idList);
//	}
	
	public List<EmployeeInfo> getList() {
		
		return dao.getList();
	}
}
